<template>
	<!-- 个人资料 -->
	<view class="container">
		<view class="box">
			<view class="item">
				<view class="title">
					头像
				</view>
				<image src="../../static/toux.png" mode=""></image>
			</view>
			<view class="item">
				<view class="title">
					昵称
				</view>
				<view class="text">
					溜达
				</view>
			</view>
			<view class="item">
				<view class="title">
					性别
				</view>
				<view class="text">
					<picker mode="selector" :range="arr" @change="bindPickerChange">
						<view>{{arr[index]}}</view>
					</picker>
				</view>
			</view>
			<view class="item">
				<view class="title">
					联系电话
				</view>
				<view class="text">
					82088208820
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr:['男','女','人妖'],
				index:0
			};
		},
		methods:{
			bindPickerChange: function(e) {
				// console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			},
		}
	}
</script>

<style lang="scss" scoped>
	.container{
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: #F2F2F2;
		overflow: hidden;
		.box{
			background:rgba(255,255,255,1);
			border-radius:10px;
			margin-top: 30upx;
			.item{
				display: flex;
				margin: 0 30upx;
				justify-content: space-between;
				height: 90upx;
				line-height: 90upx;
				box-sizing: border-box;
				border-bottom: 2upx solid #EDEDED;
				.title,.text{
					font-size:30upx;
					font-family:Microsoft YaHei;
					font-weight:400;
					color:rgba(51,51,51,1);
				}
				image{
					width: 50upx;
					height: 50upx;
					margin-top: 20upx;
				}
				.text{
					padding-left: 100upx;
				}
			}
		}
	}
</style>
